import { useState } from 'react'
import reactLogo from './assets/react.svg'
import './App.scss'
import { Route, Routes, Navigate } from 'react-router-dom'
import Login from './view/Login'
import Manage from './view/Manage'
import React from 'react'



function App() {
  const [count, setCount] = useState(0)

  return (
    <div className="App">
      <Routes>
        <Route path="/login" element={<Login />} />

        {/* 在路径后添加型号（*）表示element对应的组件中有用子路由 */}
        <Route path="/manage/*" element={<Manage />} />
        <Route path='/' element={<Navigate to='/login' />} />
      </Routes>
    </div>
  )
}

export default App
